package com.wang;

import java.io.Serializable;

public class Result<T> implements Serializable {

    private boolean success;  
    private T data;  

    public Result() {}  

    public Result(boolean success, T data) {  
        this.success = success;  
        this.data = data;  
    }  

    public boolean isSuccess() {  
        return success;  
    }  

    public void setSuccess(boolean success) {  
        this.success = success;  
    }  

    public T getData() {  
        return data;  
    }  

    public void setData(T data) {  
        this.data = data;  
    }  

    @Override  
    public String toString() {  
        return "Result{" +  
                "success=" + success +  
                ", data=" + data +  
                '}';  
    }  
}